-
Notifications
You must be signed in to change notification settings - Fork 5k
[Improvement-17874][ApiServer] Remove the default value of expireTime and let the user choose the time #17907
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
Conversation
SbloodyS
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm +0 on this. Waiting for other's opinions.
a customer need to create a token to call DS services and report that the token was already expired immediately after creation. |
|
We should set the time to empty here, let user provide a validated value, the system should not provide unreasonable default values. |
|
| : null | ||
| ), | ||
| expireTime: ref(Date.now()), | ||
| expireTime: null as number | Date | null, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
expireTime should not be number
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
expireTime should not be
number
dolphinscheduler-ui/src/views/security/token-manage/components/token-modal.tsx
variables.model.expireTime = new Date(props.row.expireTime).getTime()



Purpose of the pull request
close #17874
Brief change log
Remove the default value of expireTime and let the user choose the time
Verify this pull request
This pull request is code cleanup without any test coverage.
(or)
This pull request is already covered by existing tests, such as (please describe tests).
(or)
This change added tests and can be verified as follows:
(or)
Pull Request Notice
Pull Request Notice
If your pull request contains incompatible change, you should also add it to
docs/docs/en/guide/upgrade/incompatible.md